package com.hro.hro_app.main;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

import com.hro.hro_app.R;
import com.hro.hro_app.gcm.GCMRegistrationHandler;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		TextView textview = (TextView)findViewById(R.id.text);
		textview.setText("HRO App!");
		
		Context applicationContext = this.getApplicationContext();
		GCMRegistrationHandler.handle(applicationContext);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {

		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
}